package com.reason.user.feign;


import com.reason.common.pojo.Result;
import com.reason.user.pojo.Marriage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author zhouxiaoyu
 */
@FeignClient("user")
public interface MarriageFeign {
    /**
     * 查询所有
     * @return
     */
    @GetMapping("/marriage/findAll")
    public Result<List<Marriage>> findAll();
    /**
     * 根据id查询marriage
     * @param Id
     * @return
     */
    @GetMapping("/marriage/findById/{Id}")
    public Marriage findById(@PathVariable("Id") Long Id);
}
